<ui:composition  xmlns="http://www.w3.org/1999/xhtml"
                 xmlns:ui="http://java.sun.com/jsf/facelets"
                 xmlns:h="http://java.sun.com/jsf/html"
                 xmlns:f="http://java.sun.com/jsf/core"
                 xmlns:a4j="http://richfaces.org/a4j"
                 xmlns:rich="http://richfaces.org/rich"
                 xmlns:fn="http://java.sun.com/jsp/jstl/functions">
    <h:form>
        <div style="vertical-align: top;width:195px;overflow: hidden;">
            <rich:panel header="导航栏" id="p-hgt" style="min-height: 560px;vertical-align: top;">
                <h:outputText value="未分配权限，请联系管理员！"
                              style="color:red;"
                              rendered="#{sysmenu.rootNode eq null}">
                </h:outputText>
                <h:panelGrid>
                    <h:outputText value=""/>
                    <rich:tree value="#{sysmenu.rootNode}" var="item"
                               selectionType="ajax" toggleType="client"
                               toggleNodeEvent="click"
                               style="width:190px" >
                        <rich:treeNode>
                            <h:commandLink rendered="#{not empty item.url}">
                                <f:param name="contentPage" value="#{item.url}"/>
                                <h:outputText title="#{item.data}" value="#{item.data}"/>
                            </h:commandLink>
                            <h:outputText value="#{item.data}" rendered="#{empty item.url}"/>
                        </rich:treeNode>
                    </rich:tree>
                </h:panelGrid>
            </rich:panel>
        </div>      
    </h:form>
</ui:composition>

